import myRequest from '@/static/js/request.js';


/*查询分类*/
const getAllCategory = function() {
	return myRequest({
		url: '/front/category/getAll',
		method: 'get',
	})
}

/* 查询兼职 */
/* 搜索兼职 */
const getAllParttime = function(data) {
	return myRequest({
		url: '/front/parttime/getAll',
		method: 'get',
		data: JSON.stringify(data)
	})
}

/* 广告 */
const getAllAdvertising = function() {
	return myRequest({
		url: '/front/advertising/getAll',
		method: 'get',
	})
}

/* 详情 */
// const getParttimeDetil = function(parttimeId) {
// 	return myRequest({
// 		url: '/front/parttime/get/' + parttimeId,
// 		method: 'get',
// 	})
// }

module.exports = {	
	getAllCategory,
	getAllParttime,
	getAllAdvertising
	// getParttimeDetil
}

